import request from '@/utils/request'

// 查询学校表列表
export function listSchool(query) {
    return request({
        url: '/basic/school/list',
        method: 'get',
        params: query
    })
}

// 查询学校表详细
export function getSchool(id) {
    return request({
        url: '/basic/school/' + id,
        method: 'get'
    })
}

// 新增学校表
export function addSchool(data) {
    return request({
        url: '/basic/school',
        method: 'post',
        data: data
    })
}

// 修改学校表
export function updateSchool(data) {
    return request({
        url: '/basic/school',
        method: 'put',
        data: data
    })
}

// 删除学校表
export function delSchool(id) {
    return request({
        url: '/basic/school/' + id,
        method: 'delete'
    })
}
